//
//  WorkSpaceViewController.swift
//  UIByCode
//
//  Created by yao_yu on 14-8-13.
//  Copyright (c) 2014年 yao_yu. All rights reserved.
//

import UIKit

class WorkSpaceViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        // 创建浏览器
        let bounds = view.bounds
        var frame = CGRect(x: 0, y: 20, width: bounds.width, height: bounds.height - 20)
        let webview = UIWebView(frame: frame)
        self.view.addSubview(webview)
        
        let url = NSURL(string: "http://222.247.44.154:8280/ihpms/login.jsp")
        let request = NSURLRequest(URL: url)
        webview.loadRequest(request)
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.
    }
    

    /*
    // MARK: - Navigation

    // In a storyboard-based application, you will often want to do a little preparation before navigation
    override func prepareForSegue(segue: UIStoryboardSegue!, sender: AnyObject!) {
        // Get the new view controller using segue.destinationViewController.
        // Pass the selected object to the new view controller.
    }
    */

}
